<!--  -->

<style lang='scss' type='stylesheet/scss' scoped>
.mask-warpper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  .content {
    position: relative;
    min-width: 650px;
    padding: 55px 44px 40px 44px;
    box-sizing: border-box;
    background: white;
    .title {
      text-align: center;
      font-size: 20px;
      line-height: 1;
      margin-bottom: 20px;
    }

    .el-icon-close {
      position: absolute;
      top: 0;
      right: 0;
      padding: 20px;
      cursor: pointer;
      color: black;
      font-weight: bold;
      font-size: 20px;
    }
  }
}
</style>

<template>
  <div class="mask-warpper">
    <div class="content">
      <i class="el-icon-close"
         @click="closeMask"></i>
      <div class="title">{{title||"标题"}}</div>
      <slot></slot>
    </div>
  </div>
</template>

<script type='text/ecmascript-6'>
export default {
  props: ["title", "visible"],
  data() {
    return {};
  },
  methods: {
    closeMask() {
      this.$emit("update:visible", false);
    }
  }
};
</script>
